package fr.labri.macchiato.feature.localDatabase;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * Service executing Sparql queries on a local model
 * 
 * @author Matthieu FOUCAULT
 * 
 */
@RemoteServiceRelativePath("query")
public interface RpcQueryLauncher extends RemoteService {

	/**
	 * Loads the model in the memory
	 */
	void loadModel(String url);

	/**
	 * Executes a Sparql query
	 * @param query
	 * @return a JSON result of the query
	 */
	String launchQueryForJSON(String url, String query);
}
